package com.xzl.org.learning_situation_analysis.service.Impl;

import com.xzl.org.learning_situation_analysis.dao.KnowledgePointsMapper;
import com.xzl.org.learning_situation_analysis.entity.KnowledgePoints;
import com.xzl.org.learning_situation_analysis.entity.QuestionScore;
import com.xzl.org.learning_situation_analysis.service.KnowledgePointsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 夏智力
 * @FileName KnowledgePointsServiceImpl
 * @date 2022/4/14 14:57
 * @Software: IntelliJ IDEA
 */
@Service
public class KnowledgePointsServiceImpl implements KnowledgePointsService {

    @Autowired
    private KnowledgePointsMapper knowledgePointsMapper;

    @Override
    public KnowledgePoints selectById(int id) {
        return knowledgePointsMapper.selectById(id);
    }

    @Override
    public List<KnowledgePoints> selectBySubjectId(int subjectId) {
        return knowledgePointsMapper.selectBySubjectId(subjectId);
    }

    @Override
    public int insertKnowledgePoints(KnowledgePoints knowledgePoints) {
        return knowledgePointsMapper.insertKnowledgePoints(knowledgePoints);
    }
}
